<!DOCTYPE html>
<html>
<head>
	<title><?php echo $desc." | ".$title; ?></title>
</head>
<body>
	<h1>Register User</h1>
	<?php  
	$status = $this->session->flashdata('notif_status');
	$notif = $this->session->flashdata('notif');
	?>
	<?php if(!empty($status)): ?>
		<?php if($status == "1"): ?>
			<?php echo $notif; ?>
		<?php elseif($status == "0"): ?>
			<?php echo $notif; ?>
		<?php endif; ?>
	<?php endif; ?>
	<form action="<?php echo site_url('home/register'); ?>" method="post">
		<table>
			<tr>
				<td>
					<label>Username</label><br/>
					<input type="text" name="usr_username"/><br/>
					<small><?php echo form_error('usr_username') ?></small>
				</td>
				<td>
					<label>Nama Lengkap</label><br/>
					<input type="text" name="usr_fullname"/><br/>
					<small><?php echo form_error('usr_fullname') ?></small>
				</td>				
			</tr>
			<tr>
				<td>
					<label>Password</label><br/>
					<input type="password" name="usr_pass"/><br/>
					<small><?php echo form_error('usr_pass') ?></small>
				</td>
				<td>
					<label>Re-type Password</label><br/>
					<input type="password" name="usr_repass"/><br/>
					<small><?php echo form_error('usr_repass') ?></small>
				</td>
			</tr>
			<tr>
				<td>
					<label>Email</label><br/>
					<input type="text" name="usr_email"/><br/>
					<small><?php echo form_error('usr_email') ?></small>
				</td>
				<td>
					<label>Jenis Kelamin</label><br/>
					<select name="usr_jk">
						<option value="Pria">Pria</option>
						<option value="Wanita">Wanita</option>
					</select><br/>
					<small><?php echo form_error('usr_jk') ?></small>
				</td>				
			</tr>
		</table>
		<input type="submit" name="btn_register" value="Daftar Sekarang"/>
	</form>
</body>
</html>